#include "Task.hpp"
#include "ThreadBool.hpp"
#include <ctime>

// template class ThreadBool<Task>::GetInstance()->start();

int main()
{
// ThreadBool<Task>::GetInstance()->start();
//     sleep(10);
    ThreadBool<Task> tb;
    tb.start();
    srand(time(nullptr));

    while(1)
    {
        sleep(1);
        int x=rand()%15+1;
        usleep(20);
        int y=rand()%15;
        char oper=opers[rand()%opers.size()];

        Task t(x,y,oper);
        tb.Push(t);

        cout<< "main thread make task"<<t.GetTask()<<endl;
    }
    return 0;
}